/*
 * @Descripttion: 
 * @Author: cuidm
 * @Date: 2022-10-11 13:27:45
 * @LastEditors: cuidm
 * @LastEditTime: 2022-10-17 17:21:14
 */
import React, { useState, useEffect, Fragment } from "react";
import { message } from "antd";;
import { HcpTipModal } from "@/components";
import cmdbres from "@/data/cmdbres";
import request from "@/utils/request";
import hcpUtils from "@/utils/hcpUtils";

const user = hcpUtils.getUser();
const DeleteModel = ({ info, visible, setVisible, onDeleteFinish, history }) => {

    return (
        <HcpTipModal
            title="提示"
            visible={visible}
            cancelText={null}
            okText="知道了"
            onFinish={() => setVisible(false)}
            onCancel={() => setVisible(false)}
            content={
                <>
                    <div className="main-content">
                        <span className="iconfont iconfont-yellow icon-confirm-warning" />
                        <span className="main-content-info">
                            请前往
                            <a onClick={()=> {
                                history.push({
                                    pathname: "/model/group",
                                });
                            }}>
                                【模型属性】
                            </a>
                            删除模型，模型删除后关联关系自动删除！
                        </span>
                    </div>
                </>
            }
        />
    );
};

export default DeleteModel;
